<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map.Entry" %>
<%@ page import="triple.Triple" %>
<%@ page import="triple.node.BlankNode" %>
<%@ page import="triple.node.ImplicitPredicate" %>
<%@ page import="triple.node.Node" %>
<%@ page import="triple.node.TrunkNode" %>
<%@ page errorPage="index.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>标注结果</title>
</head>
<body>
<% 
	@SuppressWarnings("unchecked")
	List<Entry<String, String>> trunks = (List<Entry<String, String>>) session.getAttribute("trunks");

	@SuppressWarnings("unchecked")
	List<Triple> triples = (List<Triple>) session.getAttribute("triples");
	
	out.println("<h2>“");
	for (Entry<String, String> trunk : trunks) {
		out.print(trunk.getKey());
	}
	out.println("”的语义标注结果：</h2>");
	
	for (Triple triple : triples) {
		out.println("<p>" + triple.getSubject() + " " + triple.getPredicate() + " " + triple.getObject() + "</p>");
	}
%>

	<a href='index.jsp'>回首页</a>
	<a href='index6.jsp' target='_blank'>我要添加新词</a>
</body>
</html>